package com.bo.bo_animator;

import android.animation.Animator;
import android.animation.AnimatorInflater;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends Activity {

	Button button;
	TextView tv;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		button=(Button)findViewById(R.id.button1);
		tv = (TextView)findViewById(R.id.textView1);
		button.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Animator animator = AnimatorInflater.loadAnimator(MainActivity.this, R.anim.tv_anim);
				animator.setTarget(tv);
				animator.start();
				//test2
				
				
				
			}
		});
		
		
		
	}



}